package com.bbx.taxi.client.Task;

import android.app.Activity;

import com.bbx.androidapi.util.ToastUtil;
import com.bbx.api.sdk.model.passanger.OrderWaitBuild;
import com.bbx.api.sdk.model.passanger.ShareDetailBuild;
import com.bbx.api.sdk.model.passanger.Return.ShareDetail;
import com.bbx.api.sdk.net.base.BaseNetwork;
import com.bbx.api.sdk.net.base.JsonBuild;
import com.bbx.api.sdk.net.passeger.conn.OrderWaitNet;
import com.bbx.api.sdk.net.passeger.conn.ShareDetailNet;
import com.bbx.taxi.client.MyApplication;
import com.bbx.taxi.client.R;
import com.bbx.taxi.client.Bean.Message.ObserverListener.DATA_TYPE;

/**
 * @Path com.bbx.taxi.client.Task.MyShareDetailTask.java
 * @Author 严旭文
 * @Date 2016-5-13 上午9:54:36
 * @Company 蓝海（福建）信息技术有限公司
 * @Description
 * 分享活动详情
 */
public class MyShareDetailTask extends BaseTask {
	public DATA_TYPE TYPE = DATA_TYPE.SHAREDETAIL;
	private ShareDetailBuild mShareDetailBuild;

	public MyShareDetailTask(Activity context, String share_type) {
		super(context);
		MyApplication mApplication = MyApplication.getInstance();
		mShareDetailBuild = new ShareDetailBuild(context);
		mShareDetailBuild.uid = mApplication.getUid();
		mShareDetailBuild.access_token = mApplication.getToken();
		mShareDetailBuild.type = share_type;
	}

	@Override
	public boolean isShow() {
		return false;
	}

	@Override
	public boolean isReturnString() {
		return false;
	}
	@Override
	public boolean condition() {
		// TODO Auto-generated method stub
		return true;
	}
	@Override
	public void request() {
		setType(TYPE, mShareDetailBuild);
	}

	@Override
	public void success(int status,Object object) {
		// TODO Auto-generated method stub

	}

	@Override
	public void failed(int status, String msg,String message) {
		// TODO Auto-generated method stub

	}

	@Override
	public BaseNetwork getBaseNetwork() {
		return new ShareDetailNet(context);
	}
}
